package org.jeecg.modules.oa.service.impl;

import org.jeecg.modules.oa.entity.AttendanceManagement;
import org.jeecg.modules.oa.mapper.AttendanceManagementMapper;
import org.jeecg.modules.oa.service.IAttendanceManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 打卡表
 * @Author: jeecg-boot
 * @Date:   2019-12-20
 * @Version: V1.0
 */
@Service
public class AttendanceManagementServiceImpl extends ServiceImpl<AttendanceManagementMapper, AttendanceManagement> implements IAttendanceManagementService {
  @Autowired
  private AttendanceManagementMapper attendanceManagementMapper;
 @Override
 public List<AttendanceManagement> findByUserNo(AttendanceManagement newAtte) {
  return attendanceManagementMapper.findByUserNo(newAtte);
 }

 @Override
 public void updateAll(AttendanceManagement oldAtte) {
  attendanceManagementMapper.updateAll(oldAtte);
 }

    @Override
    public AttendanceManagement findPre(AttendanceManagement attendance) {
        return attendanceManagementMapper.findPre(attendance);
    }
}
